<template>
	<view class="help">
		<uv-navbar leftIcon="arrow-leftward" leftIconColor="#FFF" placeholder autoBack bgColor="#161714">
			<template v-slot:center>
				<view class="center_slot">帮助中心</view>
			</template>
		</uv-navbar>
		<view class="content">
			<view class="list">
				<view class="item" @click="router('/pages/login/article?key=use_provision')">
					<view class="key">使用条款</view>
					<image src="@/static/images/r1.png" class="icon"></image>
				</view>
				<view class="item" @click="router('/pages/login/article?key=privacy')">
					<view class="key">隐私协议</view>
					<image src="@/static/images/r1.png" class="icon"></image>
				</view>
				<view class="item" @click="router('/pages/login/article?key=common_question')">
					<view class="key">常见问题</view>
					<image src="@/static/images/r1.png" class="icon"></image>
				</view>
			</view>
		</view>
	</view>
</template>

<script setup>
	import useBase from "@/hooks/useBase.js";
	const {
		router
	} = useBase();
</script>

<style scoped lang="scss">
	.help {
		min-height: 100vh;

		.center_slot {
			color: #FFFFFF;
			font-size: 14px;
			font-weight: 800;
		}

		.content {
			padding: 50rpx 20rpx 0;
			box-sizing: border-box;

			.list {
				border-radius: 20rpx;
				padding: 0 30rpx;
				box-sizing: border-box;
				background: #2F2F2F;
				overflow: hidden;

				.item {
					height: 120rpx;
					border-bottom: 1px solid #42433F;
					padding: 0 6rpx;
					box-sizing: border-box;
					display: flex;
					justify-content: space-between;
					align-items: center;

					&:last-child {
						border-bottom: none;
					}

					.key {
						color: #FFFFFF;
						font-size: 28rpx;
					}

					.icon {
						width: 20rpx;
						height: 20rpx;
					}
				}
			}
		}
	}
</style>